package com.sun.stringescapeutils;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;

import java.io.File;
import java.io.IOException;

public class JsoupTest2 {
    public static void main(String[] args) throws IOException {
        File file = new File("F:/AnHeng/Nessus-20201028151834_vr7wxw.html");
        Document parse = Jsoup.parse(file, "utf-8","");
        /*Elements h2 = parse.getElementsByTag("h2");
        for (Element elements : h2){
            String port = elements.text();
            if (!port.equals("")){
                System.out.println(port);
            }
        }*/

        Elements h2 = parse.getElementsByTag("td");
        for (Element elements : h2){
            String ip = elements.text();
            System.out.println(ip);
        }

    }
}
